package com.pcbly.web.bean.system;

import java.util.HashSet;
import java.util.Set;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.pcbly.web.bean.AbstractBaseBean;

public class DepartBean extends AbstractBaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7977729080536134118L;
	
	private String departName;
	
	private String departManager;
	
	private String departManagerId;
	
	private String departDescn;
	
	private String telNo;
	
	private String faxNo;
	
	private DepartBean parent;
	private Set<DepartBean> childs=new HashSet<DepartBean>(0);
	
	public String getTelNo() {
		return telNo;
	}

	public void setTelNo(String telNo) {
		this.telNo = telNo;
	}

	public String getFaxNo() {
		return faxNo;
	}

	public void setFaxNo(String faxNo) {
		this.faxNo = faxNo;
	}

	public DepartBean getParent() {
		return parent;
	}

	public String getDepartManagerId() {
		return departManagerId;
	}

	public void setDepartManagerId(String departManagerId) {
		this.departManagerId = departManagerId;
	}

	public String getDepartManager() {
		return departManager;
	}

	public void setDepartManager(String departManager) {
		this.departManager = departManager;
	}

	public void setParent(DepartBean parent) {
		this.parent = parent;
	}

	public Set<DepartBean> getChilds() {
		return childs;
	}

	public void setChilds(Set<DepartBean> childs) {
		this.childs = childs;
	}

	public String getDepartName() {
		return departName;
	}

	public void setDepartName(String departName) {
		this.departName = departName;
	}

	public String getDepartDescn() {
		return departDescn;
	}

	public void setDepartDescn(String departDescn) {
		this.departDescn = departDescn;
	}

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		return EqualsBuilder.reflectionEquals(this, object);
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

}
